package edu.rit.drh4818.fire.emitter;



/**
 * Emit a constant layer of particles.
 * 
 * @author Darren Headrick
 *
 */
public class ConstantEmitter implements Emitter 
{
	public static String NAME = "Constant";
	
	/*
	 * (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	public String toString()
	{
		return NAME;
	}

	/*
	 * (non-Javadoc)
	 * @see edu.rit.drh4818.volume.renderer.Emitter#emit(short[][][])
	 */
	public short[][][] emit(short[][][] base) {
		for( int x = 0; x < base.length; x++ )
		{
			for( int z = 0; z < base[x][0].length; z++ )
			{
				base[x][0][z] = 60;
			}
		}
		return base;
	}
}
